﻿@model Dexter.Web.Mvc.ViewModel.Backoffice.ViewsData.AccountController.AccountChangePasswordViewData
@{
	ViewBag.Title = "ChangePassword";
	Layout = "~/Areas/Admin/Views/Shared/_BackOffice.cshtml";
}

<section class="grid_12">
	@if (!ViewData.ModelState.IsValid) {
			<ul class="message error no-margin">
				@Html.ValidationSummary( )
			</ul>
		}

	<div class="block-border">
		<form action="#" method="post" id="simple_form" class="block-content form">
			<h1>Create Post</h1>

			@Html.AntiForgeryToken()

			@Html.HiddenFor(x => x.UserPasswordBinder.Username)

			<fieldset class="grey-bg required">
				<legend>Required Fields</legend>

				<p>
					<label for="simple-required">Old Password</label>
					@Html.PasswordFor( x => x.UserPasswordBinder.OldPassword, new { @class = "full-width", placeholder = "Write here the title of the post" } )
				</p>

				<p>
					<label for="simple-required">New Password</label>
					@Html.PasswordFor( x => x.UserPasswordBinder.NewPassword, new { @class = "full-width", placeholder = "Write here the title of the post" } )
				</p>

				<p>
					<label for="simple-required">Confirm New Password</label>
					@Html.PasswordFor( x => x.UserPasswordBinder.ConfirmNewPassword, new { @class = "full-width", placeholder = "Write here the title of the post" } )
				</p>

				<p class="input-with-button">
					<button type="submit">Save</button>
				</p>

			</fieldset>

		</form>
	</div>

</section>